package com.study.book.gym.char06;

import java.util.function.Function;

/**
 * @author study
 * @version 1.0
 * @date 2021/5/17 11:16
 */
public class LambdaDemo {
    public static void main(String[] args) {
    final int num = 2;
    final Function<Integer, Integer> stringConverter = (from) -> from * num;
    System.out.println(stringConverter.apply(3));
    }

    void test() {
        final int num = 2;
        final Function<Integer, Integer> stringConverter = (from) -> from * num;
        System.out.println(stringConverter.apply(3));
    }
}
